package com.opengate.demo.contact.feign;

import com.opengate.base.result.Result;
import com.opengate.demo.contact.req.GetDemoInfoReq;
import com.opengate.demo.contact.resp.GetDemoInfoResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 曳戈泰尔
 * @version 1.0
 * @description DemoFeignService
 * @date 2023/4/27 5:46 PM
 */
@FeignClient(name = "opengate-demo-api")
public interface DemoFeignService {

    @PostMapping("/api/v1/demo/getDemoInfo")
    Result<GetDemoInfoResp> getDemoInfo(@RequestBody GetDemoInfoReq req);

    @GetMapping("/api/v1/demo/test")
    Result<String> test();
}
